function pieChart() {
  return {
    tooltip: {
      trigger: 'item',
      color: '#fff'
    },

    legend: {
      textStyle: {
        color: '#fff'
      },
      top: '30%',
      left: 'right',
      orient: 'vertical'
    },
    series: [
      {
        type: 'pie',
        radius: ['40%', '70%'],
        avoidLabelOverlap: false,
        label: {
          color:'#fff',
          show: false,
          position: 'center'
        },
        emphasis: {
          label: {
            show: true,
            fontSize: 40,
            fontWeight: 'bold'
          }
        },
        labelLine: {
          show: false
        },
        data: [
          { value: 1048, name: '新闻' },
          { value: 20, name: '微博' },
          { value: 20, name: '贴吧' }
        ]
      }
    ]
  }
}

export { pieChart }
